package com.shenfa.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.shenfa.bean.bill.rule.DimensionInfo;
import com.shenfa.dao.DimensionInfoDao;

public class DimensionInfoService {

	@Autowired
	private DimensionInfoDao dimensionInfoDao;

	public List<DimensionInfo> doGridList(int skipResults, int maxResults) {
		return dimensionInfoDao.queryGridList(skipResults, maxResults);
	}

	public int doDimenPageTotal() {
		return dimensionInfoDao.dimenPageTotal();
	}

	public boolean addDimension(DimensionInfo dimen) {
		dimensionInfoDao.addDimension(dimen);
		return true;
	}

	public boolean editDimension(DimensionInfo dimen) {
		dimensionInfoDao.editDimension(dimen);
		return true;
	}

	public boolean deleteDimension(int i) {
		
		dimensionInfoDao.deleteDimension(i);
		return true;
	}

	public int validateField(int field_type) {
		return dimensionInfoDao.validateField(field_type);
	}
}
